﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace EentitfFrameworkMvc.Models
{
    [Table("tb_student")]
    public partial class TbStudent
    {
        [Key]
        [Column("sid")]
        public int Sid { get; set; }
        [Required]
        [Column("sname")]
        [StringLength(12)]
        [Unicode(false)]
        public string Sname { get; set; }
        [Required]
        [Column("spwd")]
        [StringLength(20)]
        [Unicode(false)]
        public string Spwd { get; set; }
        [Required]
        [Column("ssex")]
        [StringLength(3)]
        [Unicode(false)]
        public string Ssex { get; set; }
        [Column("sage")]
        public int Sage { get; set; }
        [Required]
        [Column("ssf")]
        [StringLength(20)]
        [Unicode(false)]
        public string Ssf { get; set; }
    }
}
